AsyncAPI for the gift microservice. Uses RabbitMQ queues as configured in code.
RabbitMQ broker (env CLOUDAMQP_URL supported)
Queue the service subscribes to in order to start gift generation.
Consume requests to generate gift ideas
Available only on servers:
Accepts the following message:
Request to generate gift ideas.
Additional properties are allowed.
Additional properties are allowed.
{
"keywords": [
"string"
],
"chatId": "string",
"profile": {}
}
Queue the service emits to notify ready gift ideas (service publishes).
Publish generated gift ideas
Available only on servers:
Accepts the following message:
Generated gift ideas ready to consume.
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.
{
"giftIdeas": [
{
"image": "http://example.com",
"title": "string",
"description": "string",
"link": "http://example.com",
"price": {
"value": 0,
"label": "string",
"currency": "string",
"negotiable": true
}
}
],
"chatId": "string"
}
Request to generate gift ideas.
Additional properties are allowed.
Additional properties are allowed.
Generated gift ideas ready to consume.
Additional properties are allowed.
Additional properties are allowed.
Additional properties are allowed.